home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Graphics / vcdimager / source / differ.txt < prev    next >
Encoding:
Text File  |  2001-06-30  |  3.4 KB  |  154 lines

  1. diff -Pc3prb ram:old/findme.c ./findme.c
  2. *** ram:old/findme.c    Sun Mar 11 02:29:49 2001
  3. --- ./findme.c    Sat Jun 30 15:13:01 2001
  4. ***************
  5. *** 22,27 ****
  6. --- 22,33 ----
  7.   
  8.   #include "findme.h"
  9.   
  10. + #ifdef AMIGA_COMPILE
  11. + #ifndef X_OK
  12. + #define X_OK 1
  13. + #endif
  14. + #endif
  15.   const char *
  16.   findProgramPath (const char *argv0)
  17.   {
  18. diff -Pc3prb ram:old/inttypes.h ./inttypes.h
  19. *** ram:old/inttypes.h    Thu Jan  1 00:00:00 1970
  20. --- ./inttypes.h    Fri Jun 29 19:24:58 2001
  21. ***************
  22. *** 0 ****
  23. --- 1,5 ----
  24. + #define uint64_t long long
  25. + #define uint32_t unsigned int
  26. + #define uint16_t unsigned short
  27. + #define uint8_t unsigned char
  28. + #define int16_t short
  29. diff -Pc3prb ram:old/popt.c ./popt.c
  30. *** ram:old/popt.c    Sun Mar 11 02:29:49 2001
  31. --- ./popt.c    Sat Jun 30 15:13:44 2001
  32. ***************
  33. *** 15,20 ****
  34. --- 15,24 ----
  35.   #include <string.h>
  36.   #include <unistd.h>
  37.   
  38. + #ifdef AMIGA_COMPILE
  39. + #include <proto/dos.h>
  40. + #endif
  41.   #if HAVE_ALLOCA_H
  42.   # include <alloca.h>
  43.   #endif
  44. *************** execCommand (poptContext con)
  45. *** 272,278 ****
  46. --- 276,287 ----
  47.   #endif
  48.   #endif
  49.   
  50. + #ifndef AMIGA_COMPILE
  51.     execvp (argv[0], (char *const *) argv);
  52. + #else
  53. + printf("Executing: %s\n",argv[0]);
  54. + Execute(argv[0],0,0);
  55. + #endif
  56.   }
  57.   
  58.   static const struct poptOption *
  59. diff -Pc3prb ram:old/poptconfig.c ./poptconfig.c
  60. *** ram:old/poptconfig.c    Sun Mar 11 02:29:49 2001
  61. --- ./poptconfig.c    Sat Jun 30 15:14:34 2001
  62. *************** poptReadDefaultConfig (poptContext con, 
  63. *** 164,171 ****
  64. --- 164,173 ----
  65.     rc = poptReadConfigFile (con, "/etc/popt");
  66.     if (rc)
  67.       return rc;
  68. + #ifndef AMIGA_COMPILE
  69.     if (getuid () != geteuid ())
  70.       return 0;
  71. + #endif
  72.   
  73.     if ((home = getenv ("HOME")))
  74.       {
  75. diff -Pc3prb ram:old/snprintf.c ./snprintf.c
  76. *** ram:old/snprintf.c    Thu Jan  1 00:00:00 1970
  77. --- ./snprintf.c    Fri Jun 29 23:13:44 2001
  78. ***************
  79. *** 0 ****
  80. --- 1,13 ----
  81. + #include <stdio.h>
  82. + #include <stdarg.h>
  83. + #include <string.h>
  84. + int snprintf(char *s,size_t size,const char *format,...)
  85. + { int retval;
  86. +   va_list args;
  87. +   va_start(args,format);
  88. +   retval=vsnprintf(s,size,format,args);
  89. +   va_end(args);
  90. +   return retval;
  91. + }
  92. diff -Pc3prb ram:old/vcd_types.h ./vcd_types.h
  93. *** ram:old/vcd_types.h    Tue May 15 01:00:59 2001
  94. --- ./vcd_types.h    Sat Jun 30 15:15:01 2001
  95. *************** typedef u_int64_t uint64_t;
  96. *** 44,49 ****
  97. --- 44,54 ----
  98.   /* fixme */
  99.   #endif /* HAVE_STDINT_H */
  100.   
  101. + #ifdef AMIGA_COMPILE
  102. + #define UINT64_C(c) (unsigned long long)(c)
  103. + #define UINT32_C(c) (unsigned int)(c)
  104. + #endif
  105.   /* fix for bsdi... hope it works */
  106.   #ifdef __bsdi__
  107.   # define UINT32_C(c) c ## U
  108. diff -Pc3prb ram:old/vcdimager.c ./vcdimager.c
  109. *** ram:old/vcdimager.c    Mon May  7 11:24:39 2001
  110. --- ./vcdimager.c    Sat Jun 30 15:15:54 2001
  111. ***************
  112. *** 32,38 ****
  113. --- 32,40 ----
  114.   #include <stdio.h>
  115.   #include <stdlib.h>
  116.   #include <string.h>
  117. + #ifndef AMIGA_COMPILE
  118.   #include <sys/mman.h>
  119. + #endif
  120.   #include <sys/stat.h>
  121.   #include <unistd.h>
  122.   
  123. diff -Pc3prb ram:old/vsnprintf.c ./vsnprintf.c
  124. *** ram:old/vsnprintf.c    Thu Jan  1 00:00:00 1970
  125. --- ./vsnprintf.c    Fri Jun 29 23:21:08 2001
  126. ***************
  127. *** 0 ****
  128. --- 1,20 ----
  129. + #include <stdio.h>
  130. + #include <stdarg.h>
  131. + #include <string.h>
  132. + int vsnprintf(char *str,size_t n,const char *fmt,va_list ap)
  133. + {
  134. + int ret;
  135. + FILE f;
  136. + if ((int)n < 1)
  137. +  return (EOF);
  138. + f._flags = __SWR | __SSTR;
  139. + f._bf._base = f._p = (unsigned char *)str;
  140. + f._bf._size = f._w = n - 1;
  141. + ret = vfprintf(&f, fmt, ap);
  142. + *f._p = 0;
  143. + return (ret);
  144. + }
  145.